//
//  JSONBeef.m
//  王宇先_13_周末xib可视化豆瓣数据
//
//  Created by wyx on 16/3/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "JSONBeef.h"

@implementation JSONBeef
+(id)JSONBeefWithFileName:(NSString *)name type:(NSString *)type{
    NSString *path = [[NSBundle mainBundle]pathForResource:name ofType:type];
    NSData *date = [NSData dataWithContentsOfFile:path];
    id result = [NSJSONSerialization JSONObjectWithData:date options:NSJSONReadingMutableContainers error:nil];
    return result;
}
@end
